function formatDate(type, date) {
    if (type == 1) {
        formatterData1(date)
    }
}


function formatterData1(date) {

}

// 综合判断环境
function jumpToMiniProgram(path) {
    // 1. 优先尝试 JS-SDK
    if (typeof wx !== 'undefined' && wx.miniProgram) {
        wx.miniProgram.navigateTo({ url: path });
    }
    // 2. 尝试 Scheme（微信内）
    else if (navigator.userAgent.includes('MicroMessenger')) {
        window.location.href = `weixin://dl/business/?t=${schemeToken}`;
    }
    // 3. 非微信环境提示
    else {
        console.log('非微信环境');
        alert('请复制链接到微信中打开');
    }
}
export default {
    formatDate,
    jumpToMiniProgram
};